package indzcraft.loader;
import java.util.HashMap;

public class EnchantDB {
	
	HashMap<Integer,Enchant> enchantDB = new HashMap<Integer,Enchant>();
	
	public EnchantDB(){
		populateEnchantDB();
	}
	
	private void populateEnchantDB() {
		enchantDB.put(4076, new Enchant("35agi", "feet", 0, 35, 0, 0, 0, 0, 0, 0));	// feet 35agi
		enchantDB.put(4105, new Enchant("25agi/runspeed", "feet", 0, 25, 0, 0, 0, 0, 0, 0));	// feet 25agi/runspeed
		enchantDB.put(1099, new Enchant("22agi", "back", 0, 22, 0, 0, 0, 0, 0, 0));	// back 22agi
		enchantDB.put(4100, new Enchant("65crit", "back", 0, 0, 0, 65, 0, 0, 0, 0));	// back 65crit
		enchantDB.put(4102, new Enchant("20stats", "chest", 20, 20, 0, 0, 0, 0, 0, 0));	// chest 20stats
		enchantDB.put(4190, new Enchant("130agi", "wrist", 0, 130, 0, 0, 0, 0, 0, 0)); // wrist 130agi
		enchantDB.put(4258, new Enchant("50agi", "wrist", 0, 50, 0, 0, 0, 0, 0, 0)); // wrist 50agi
		enchantDB.put(4079, new Enchant("40agi", "finger", 0, 40, 0, 0, 0, 0, 0, 0)); // ring 40agi
		enchantDB.put(4082, new Enchant("50exp", "hands", 0, 0, 0, 0, 50, 0, 0, 0)); // hands 50exp
		enchantDB.put(4068, new Enchant("50haste", "hands", 0, 0, 0, 0, 0, 50, 0, 0)); // hands 50haste
		enchantDB.put(4107, new Enchant("65mastery", "hands", 0, 0, 0, 0, 0, 0, 0, 65)); // hands 65mastery
		enchantDB.put(4204, new Enchant("50agi/25mastery", "shoulder", 0, 50, 0, 0, 0, 0, 0, 25)); // shoulder 50agi/25mastery
		enchantDB.put(4193, new Enchant("130agi/25mastery", "shoulder", 0, 130, 0, 0, 0, 0, 0, 25)); // shoulder 130agi/25mastery
		enchantDB.put(4126, new Enchant("190ap/55crit", "legs", 0, 0, 190, 55, 0, 0, 0, 0)); // legs 190ap/55crit
		enchantDB.put(4209, new Enchant("60agi/35haste", "head", 0, 60, 0, 0, 0, 35, 0, 0)); // head 60agi/35haste
		
		enchantDB.put(4064, new Enchant("70spellpen", "back", 0, 0, 0, 0, 0, 0, 0, 0)); // 70 spell pen
		
		enchantDB.put(4064, new Enchant("weapon_chain","weapon", 0, 0, 0, 0, 0, 0, 40, 0)); // weapon 40 hit
		enchantDB.put(4099, new Enchant("landslide","weapon"));
	}
	
	public HashMap<Integer,Enchant> getDB(){
		return enchantDB;
	}
	
	public Enchant getEnchant(int id){
		if(enchantDB.containsKey(id)){
			return enchantDB.get(id);
		}
		System.out.println("unknown enchantid:"+  id);
		return null;
	}
}
